home *** CD-ROM | disk | FTP | other *** search
/ Windows Expert / Windows Expert.iso / windownt / mapmem.zip / MAPMEM.H < prev    next >
C/C++ Source or Header  |  1993-02-24  |  521b  |  23 lines

  1. #include "devioctl.h"
  2.  
  3. //
  4. // Define our own private IOCTL
  5. //
  6.  
  7. #define IOCTL_MAPMEM_MAP_USER_PHYSICAL_MEMORY \
  8.     CTL_CODE(FILE_DEVICE_UNKNOWN, 0xeeee, METHOD_BUFFERED, FILE_ANY_ACCESS)
  9.  
  10. //
  11. // Our user mode app will pass an initialized structure like this
  12. //     down to the kernel mode driver
  13. //
  14.  
  15. typedef struct
  16. {
  17.     INTERFACE_TYPE   interfaceType;
  18.     ULONG            busNumber;
  19.     PHYSICAL_ADDRESS physicalAddress;
  20.     ULONG            length;
  21.  
  22. } PHYSICAL_MEMORY_INFO, *PPHYSICAL_MEMORY_INFO;
  23.